<?php 
$this->load->helper('url');
$i=0;
?>
<!DOCTYPE html>
<html>
<head>
	<?php $this->load->view('layout/layout_head'); ?>
</head>
<body>
	<?php $this->load->view('layout/layout_top'); ?>
	<h2>Registred users:</h2>
	<table class="table table-bordered table-hover">
	<thead>
		<tr><th>Id</th><th>First name</th><th>Last name</th><th>Company</th><th>E-mail</th><th>Phone</th><th>Country</th><th>City</th><th>Type</th></tr>
	</thead>
	<tbody>		
	<?php foreach ($this->Users->get_all() as $item) { ?>
		<tr>
			<td> <?php echo $i++; ?> </td>
			<td> <?php echo utf8_decode($item->nm_user); ?> </td>
			<td> <?php echo utf8_decode($item->nm_lastname); ?> </td>
			<td> <?php echo $item->nm_company; ?> </td>
			<td> <?php echo $item->nm_email; ?> </td>
			<td> <?php echo $item->nm_phone; ?> </td>
			<td> <?php echo $item->nm_country; ?> </td>
			<td> <?php echo $item->nm_city; ?> </td>
			<td> <?php echo $item->st_type; ?> </td>
		</tr>
	<?php } ?>
	</tbody>
	</table>
	<?php $this->load->view('layout/layout_footer'); ?>
</body>
</html>

